package com.vilen.learn.java7.V3_1.L3_10;

import com.google.inject.AbstractModule;
import com.google.inject.Provides;
import com.vilen.learn.java7.V3_1.AgentFinder;
import com.vilen.learn.java7.V3_1.SpreadsheetAgentFinder;

/**
 * Created by vilen on 2017/9/23.
 */
public class AgentFinderModule extends AbstractModule{

    @Override
    protected void configure() {

    }

    @Provides
    AgentFinder provideAgentFinder() {
        SpreadsheetAgentFinder finder = new SpreadsheetAgentFinder();
        finder.setType("Excel 97");
        finder.setPath("c:/temp/agents.xls");
        return finder;
    }
}
